{include file="tinymce_full_tpl.html"}
<LINK REL=StyleSheet HREF="css/calendar.css" TYPE="text/css">
<SCRIPT LANGUAGE="JavaScript" SRC="js/weeklycalendar.js"></SCRIPT>
<script language="javascript">buildWeeklyCalendar(1);</script>
<fieldset class="groupbox">
<legend>Новость</legend>
{if $id neq null}
	{news action="GETANEW" id="$id" varname="new"}
	<form action="index.php?module=news&action=edit&fixact=1&id={$id}" method="post">
{else}
	<form action="index.php?module=news&action=add&fixact=1" method="post">{/if}
	<table border="0" cellpadding="0" cellspacing="2">
	<tr><td width="20%">Дата</td><td width="*"><input type="text" name="date" size="30" maxlength="255" value="{$new.date}" id="date"> <input type="button" value="..." onClick="w_displayCalendar('date'); return false;"></td></tr>
	<tr><td>Заголовок</td><td><input style="width: 100%;" type="text" name="title" size="30" maxlength="255" value="{$new.title}"></td></tr>	
<tr><td>Аннотация</td><td><textarea cols="30" rows="5" style="width: 100%;" name="annotation">{$new.annotation}</textarea></td></tr>
<tr><td>Полный текст</td><td><textarea cols="30" rows="5" style="width: 100%;" name="full_text">{$new.full_text}</textarea></td></tr>
<tr><td></td><td><input type="submit" value="Сохранить изменения" class="btn" checked></td></tr>
</table></form>
</fieldset>